package com.netty.socket.gatewayClient;

import com.google.common.collect.Lists;
import io.netty.channel.Channel;

import java.util.List;

/**
 * @author shiye.ly
 * @date 2018/12/29
 */
public class ChannelPool {
    static List<Channel> channelList = Lists.newArrayList();

    public static void addChannel(Channel channel) {
        channelList.add(channel);
        System.out.println("加入成功....");
    }

    public static Channel getChannel() {
        return channelList.get(0);
    }
}
